/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.equipment.service;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.equipment.dao.EleApplicationDao;
import com.thinkgem.jeesite.modules.equipment.entity.EleApplication;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 应用管理Service
 * @author ZC
 * @version 2017-05-10
 */
@Service
@Transactional(readOnly = true)
public class EleApplicationService extends CrudService<EleApplicationDao, EleApplication> {

	public EleApplication get(String id) {
		return super.get(id);
	}
	
	public List<EleApplication> findList(EleApplication eleApplication) {
		return super.findList(eleApplication);
	}
	
	public Page<EleApplication> findPage(Page<EleApplication> page, EleApplication eleApplication) {
		return super.findPage(page, eleApplication);
	}
	
	@Transactional(readOnly = false)
	public void save(EleApplication eleApplication) {
		super.save(eleApplication);
	}
	
	@Transactional(readOnly = false)
	public void delete(EleApplication eleApplication) {
		super.delete(eleApplication);
	}

	public EleApplication findNewVersionApp(){
		return dao.findNewVersionApp();
	}
}